package cn.wolfcode.luowowo.common.domain;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@Document("comments")
public class Comments implements Serializable{
    public static final int COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int COMMENT_TYPE = 1; //评论的评论

    @Id
    private String id;  //id
    private Long detailId; //景点的id
    private String detailTitle; //景点的标题
    private String objectId;
    private Long userId;    //用户id
    private String username; //用户名
    private String city;
    private int level;
    private String headUrl;   // 用户头像
    private Integer type = COMMENT_TYPE_COMMENT; //评论类别
    private Date createTime; //创建时间
    private String content;  //评论内容
    private Comments comments;  //关联的评论


}
